package com.tuanzi.loan.business.repository.family;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.tuanzi.loan.business.entity.family.LoanApiRecord;
import com.tuanzi.loan.business.repository.family.custom.LoanApiRecordRepositoryCustom;

/**
 * @author Ray 2017/09/21
 */
public interface LoanApiRecordRepository extends LoanApiRecordRepositoryCustom, JpaRepository<LoanApiRecord, Long> {

	List<LoanApiRecord> findAllByUserId(Long userId);

	Long countByUserIdAndSourceId(Long userId, Long sourceId);
}
